package com.hutao.medical.mapper.print;

import com.hutao.medical.common.util.Params;
import com.hutao.medical.pojo.print.ApplyPrint;
import com.hutao.medical.pojo.print.ApplyPrintExample;
import com.hutao.medical.pojo.vo.PrintSaoMiao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ApplyPrintMapper {
    int countByExample(ApplyPrintExample example);

    int deleteByExample(ApplyPrintExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ApplyPrint record);

    int insertSelective(ApplyPrint record);

    List<ApplyPrint> selectByExample(ApplyPrintExample example);

    ApplyPrint selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ApplyPrint record, @Param("example") ApplyPrintExample example);

    int updateByExample(@Param("record") ApplyPrint record, @Param("example") ApplyPrintExample example);

    int updateByPrimaryKeySelective(ApplyPrint record);

    int updateByPrimaryKey(ApplyPrint record);
    
  
    
    /**
     * 查询打印申请的信息
     * @return
     */
    List<Map<String,Object>> queryApplyPrint();
    //查询申请信息
    List<Map<String,Object>> queryApplyCheck(Params params);
    
    //查询申请信息
    int queryApplyCheckCount(Params params);
    
    Map<String,Object> getUniqueIdAndMedRecord(Integer applyPrintDetailId);
    
    /**
     * 根据打印申请详情获取扫描信息条件
     * @param applyPrintDetailId
     * 				打印申请详情id
     * @return
     */
    PrintSaoMiao getSaoMiaoMsg(@Param("applyPrintDetailId")Integer applyPrintDetailId);
    
    String getUniqueidByApplyPrintDetailId(@Param("applyPrintDetailId")Integer applyPrintDetailId);
}